package com.qf.demo.service.impl;

import com.qf.demo.mapper.DengLuDao;
import com.qf.demo.model.TbUser;
import com.qf.demo.service.DengluService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import tk.mybatis.mapper.entity.Example;

import java.util.List;

@Service
public class DengluServiceImol implements DengluService {
    @Autowired
    private DengLuDao dengLuDao;
    @Override
    public boolean findUser(TbUser tbUser) {

     List<TbUser> list =dengLuDao.findUser(tbUser);
        System.out.println(list);
        if(list.size()>0){
        return true;}
        else {
            return  false;
        }

}
}